package chapter22;

import java.awt.*;

public class DrawCommand implements Command {
    protected Drawable drawable;

    private Point positon;
    public DrawCommand(Drawable drawable,Point positon){
        this.drawable = drawable;
        this.positon = positon;
    }
    @Override
    public void execute() {
        drawable.draw(positon.x,positon.y);
    }
}
